import React from 'react'
import { Form, Input } from 'antd'
import { useLocation } from 'react-router-dom'
import style from './style.module.less'
import CKEditor from '@/components/CKEditor'

export default () => {
  const location = useLocation()
  const record: any = location.state
  console.log('这是 tmd 消息中心点进来拿到的数据 md', record)

  return (
    <div className={style.messageExamineBox}>
      <div className={style.top}>
        <Form>
          <Form.Item label='推送标题'>
            <Input style={{ width: 320 }} value={record.title || ''} />
          </Form.Item>
          <Form.Item label='推送内容'></Form.Item>
        </Form>
      </div>
      <div className={style.bottom}>
        <div className={style.center}>
          <div className={style.eduit}>
            <CKEditor
              value={record.content || ''}
              //   value={publicNoticeConfig.publicNoticeOverview}
              //   onChange={publicNoticeConfig.getPublicNoticeTextFont}
            />
          </div>
        </div>
      </div>
    </div>
  )
}
